import React from 'react';
import { connect } from 'react-redux';
import CompetingModel from '../components/Home/communication/CompetingModel';

class CompetingModelContainer extends React.Component {
  render() {
    return (
      <CompetingModel {...this.props} />
    );
  }
}

export default connect((state) => {
  const {
    carBrands,
    subBrand,
    carStyle,
    compare,
    recommendCar,
    carInfo,
    compareCar,
  } = state.CommunicateReducer;

  return {
    carBrands,
    subBrand,
    carStyle,
    compare,
    recommendCar,
    carInfo,
    compareCar,
  };
})(CompetingModelContainer);
